import request from 'api/request'

export function getArticleList(params) {
  return request({
    url: '/article/list',
    method: 'post',
    data: params
  })
}

export function getAsideList() {
  return request({
    url: '/article/asidelist',
    method: 'get'
  })
}

export function getThisTag(tag) {
  return request({
    url: '/article/getthistag',
    method: 'get',
    params: { tag }
  })
}
export function getThisSort(sort) {
  return request({
    url: '/article/getthissort',
    method: 'get',
    params: { sort }
  })
}
export function getArticleAroundThis(id) {
  return request({
    url: '/article/aroundthis',
    method: 'get',
    params: { id }
  })
}

export function getThisArticle(id) {
  return request({
    url: '/article/getArticle',
    method: 'get',
    params: { id }
  })
}
export function getArticleMateList(params) {
  return request({
    url: '/article/getmatelist',
    method: 'post',
    data: params
  })
}

export function addThumbsUp(data) {
  return request({
    url: '/article/addthumbsup',
    method: 'post',
    data
  })
}
